<div ng-controller="ServiceactivityCtrl" ng-init="addAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/serviceactivity/list">{{activity_data.name?activity_data.name:'报名'}}</a></li>
        <li class="active">
            {{!huodong_id ?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate>
        <div class="control-group">
            <label class="control-label v-top">
                活动标题：
            </label>
            <div class="controls">
                <input id="name" type="text" name="name" ng-model="activity_data.name" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">
                副标题：
            </label>
            <div class="controls">
                <input id="remark" type="text" name="remark" ng-model="activity_data.remark" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top"> {{'活动主图'| translate}}：</label>
            <div class="controls">
                <ul class="sui-row-fluid">
                    <li class="span2">
                        <div>
                            <img ng-src="{{activity_data.img}}" style="width:600px;height: 170px">
                        </div>
                        <label>
                            <br/> 链接：
                            <input ng-model="activity_data.img" type="text" name="name" value="" style="width:100px">
                            <attachment owner-id="activity_data.huodong_id ?activity_data.huodong_id:1" owner-type="activity_data" dhf-ng-model="activity_data.img" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                        </label>
                    </li>
                    <li class="span2">
                        <div>
                            <img ng-src="{{activity_data.img1}}" style="width:600px;height: 170px">
                        </div>
                        <label>
                            <br/> 链接：
                            <input ng-model="activity_data.img1" type="text" name="name" value="" style="width:100px">
                            <attachment owner-id="activity_data.huodong_id ?activity_data.huodong_id:1" owner-type="activity_data" dhf-ng-model="activity_data.img1" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                        </label>
                    </li>
                    <li class="span2">
                        <div>
                            <div>
                                <img ng-src="{{activity_data.img2}}" style="width:600px;height: 170px">
                            </div>
                            <label>
                                <br/> 链接：
                                <input ng-model="activity_data.img2" type="text" name="name" value="" style="width:100px">
                                <attachment owner-id="activity_data.huodong_id ?activity_data.huodong_id:1" owner-type="activity_data" dhf-ng-model="activity_data.img2" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                            </label>
                        </div>
                    </li>
                    <li class="span2">
                        <div>
                            <div>
                                <img ng-src="{{activity_data.img3}}" style="width:600px;height: 170px">
                            </div>
                            <label>
                                <br/> 链接：
                                <input ng-model="activity_data.img3" type="text" name="name" value="" style="width:100px">
                                <attachment owner-id="activity_data.huodong_id ?activity_data.huodong_id:1" owner-type="activity_data" dhf-ng-model="activity_data.img3" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                            </label>
                        </div>
                    </li>
                    <li class="span2">
                        <div>
                            <div>
                                <img ng-src="{{activity_data.img4}}" style="width:600px;height: 170px">
                            </div>
                            <label>
                                <br/> 链接：
                                <input ng-model="activity_data.img4" type="text" name="name" value="" style="width:100px">
                                <attachment owner-id="activity_data.huodong_id ?activity_data.huodong_id:1" owner-type="activity_data" dhf-ng-model="activity_data.img4" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                            </label>
                        </div>
                    </li>
                </ul>
                <div>
                    <input ng-model="activity_data.img" type="hidden" value="" name="img" class="input-xlarge" required>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                起始时间：
            </label>
            <div class="controls">
                <input id="start_time" ng-model="activity_data.start_time" datetimepicker name="start_time" min-date="{{activity_data.start_time}}" required>
                <span class="float_left" style="width:10px;">至</span>
                <input id="end_time" ng-model="activity_data.end_time" datetimepicker name="end_time" min-date="{{activity_data.start_time}}" required>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label">
                软件版本：
            </label>
            <div class="controls">
                <label data-toggle="radio" class="radio-pretty inline">
                    <input type="radio" name="radio" ng-checked="{{activity_data.soft_version==1}}" ng-model="activity_data.soft_version" value="1"><span>高</span>
                </label>
                <label data-toggle="radio" class="radio-pretty inline">
                    <input type="radio" name="radio" ng-checked="{{activity_data.soft_version==2}}" ng-model="activity_data.soft_version" value="2"><span>中</span>
                </label>
                <label data-toggle="radio" class="radio-pretty inline">
                    <input type="radio" name="radio" ng-checked="{{activity_data.soft_version==3}}" ng-model="activity_data.soft_version" value="3"><span>低</span>
                </label>
            </div>
        </div>


        <div class="control-group">
            <label class="control-label v-top">
                服务费：
            </label>
            <div class="controls">
                <input id="pay_amount" type="text" name="pay_amount" ng-model="activity_data.pay_amount" /> 元
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">
                原价：
            </label>
            <div class="controls">
                <input id="original_price" type="text" name="original_price" ng-model="activity_data.original_price" /> 元
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">
                活动介绍：
            </label>
            <div class="controls">
                <ueditor ng-model="activity_data.introduce" uid="huodongdataintroduce" style="width:694px"></ueditor>
            </div>
        </div>
        <div>
            <button id="huodongAdd" class="sui-btn btn-primary" ng-click="activityAdd();">
                保存
            </button>
        </div>
    </form>
</div>